package com.cx.support;

import io.lettuce.core.api.async.RedisAsyncCommands;
import io.lettuce.core.api.reactive.RedisReactiveCommands;

/**
 * redis 批量命令操作回调接口
* @ClassName: commands
* @Description: 
* @author 舒建辉
* @date 2019-4-16 下午6:19:25
*
 */
public interface AsyncCallback {
	/**
	 * 异步批量命令操作
	* @Title: asyncInvoke
	* @Description: 
	* @param @param commands
	* @return void   
	* @throws
	 */
	void asyncInvoke(RedisAsyncCommands<String, Object> commands);

	/**
	 * Reactive批量命令操作
	 * @Title: asyncInvoke
	 * @Description:
	 * @param @param commands
	 * @return void
	 * @throws
	 */
	void asyncInvoke(RedisReactiveCommands<String, Object> commands);

}
